label: Don't deduce label width from logical rect
authorBenjamin Otte <otte@redhat.com>
Sat, 6 Nov 2021 02:15:04 +0000 (03:15 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 6 Nov 2021 02:15:04 +0000 (03:15 +0100)
commit222d6f1db181e97e96354a0e2312587934fec16f
tree0c059918535825310ba8090df6e36d67836b19fc
parent4ffa60be50f1ba5e8f78039cb0f5ea41b414864a
label: Don't deduce label width from logical rect

The width of a logical rect after line breaking is sometimes not
wide enough to cause line breaking to break at the exact same points.
(Is that by design or a bug in Pango? I don't know.)

So don't use the width, and only relyon values we actually set to
pango_layout_set_width().
gtk/gtklabel.c